package com.yougou.data.repository;

import com.yougou.data.api.ApiService;
import com.yougou.data.api.RetrofitClient;
import com.yougou.data.model.response.FloorDataResponse;
import com.yougou.data.model.response.SwiperResponse;

import io.reactivex.rxjava3.core.Observable;

public class HomeRepository {
    
    private final ApiService mApiService;
    
    public HomeRepository() {
        mApiService = RetrofitClient.createService(ApiService.class);
    }
    
    
    public Observable<SwiperResponse> getSwiperData() {
        return mApiService.getSwiperData();
    }
    
    
    public Observable<FloorDataResponse> getFloorData() {
        return mApiService.getFloorData();
    }
}

